<?php
/**
 * ClassName: CardRechargeModel
 * Description: 分段充值+消费model
 * @Author 周昌
 * @Create 2024/1/17 9:34
 */

namespace model;


class CardRechargeModel extends BaseModel
{
    protected $name='card_recharge';

    //时间获取器
    public function getAddTimeAttr($value){
        if(!empty($value)&& is_integer($value)){
            return date('Y-m-d H:i:s', $value);
        }else{
            return $value;
        }
    }

}